"""
 刘亦菲.png
 把刘亦菲 替换成 日期格式
"""
import datetime

img_name = '刘亦菲.png'
# list1 =  ['刘亦菲','png']
# list1[0] = 刘亦菲
# list1[1] = png
now = datetime.datetime.now()
ss = now.strftime('%Y%m%d%H%M%S')
# 方式一：
# list01 = img_name.split('.')
# new_name = ss +'.' + list01[1]
# print(new_name)

# 方式二
suffix = img_name[-4:]
new_name = ss + suffix
print(new_name)